import { View } from '@tarojs/components';
import './index.scss';

interface IProps {
  show: boolean;
  handleShow: (show: boolean) => void;
}

function Dialog(props: IProps) {
  return (
    <View>
      {props.show && (
        <View onClick={() => props.handleShow(false)}>
          <View>dialog</View>
        </View>
      )}
    </View>
  );
}

Dialog.displayName = 'Dialog';

// @ts-ignore
export default Dialog;
